import logging


def init_logging(pro_root_path):
    logging.basicConfig(filename=pro_root_path + "/log/test_run.log",
                        filemode="w",
                        format="%(asctime)s %(levelname)s %(filename)s %(funcName)s %(lineno)d %(message)s",
                        datefmt="%Y-%m-%d %H:%M:%S",
                        level=logging.INFO,
                        encoding="utf-8"
    )